import request from '@/utils/request'
// 查看计费规则表
export const getRules = (params) => request.get('/parking/rule/list', { params })

// 提交
export const addRules = (data) => request.post('/parking/rule', data)

// 查看计费规则详情
export const getRulesDetail = (id) => request.get(`/parking/rule/${id}`)

// 编辑
export const editRules = (data) => request.put('/parking/rule', data)

// 删除
export const delRules = (id) => request.delete(`/parking/rule/${id}`)

// 获取计费规则下拉列表

export const getPullList = () => request.get('/parking/rule/dropList')
